<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/card/cardRule/cardRuleEdit.html',"修改成功！","修改失败！");
	});
</script>
<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">
		<div class="formitm">
			<label class="lab">卡片规则名称：</label>
			<div class="ipt">
				<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" maxlength="10"  value="${cardRule.name!}"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">是否启用：</label>
			<div class="ipt">
				<input type="radio" id="status" class="xj-hongbao" value="1" name="status" <#if cardRule.status == 1>checked="checked"</#if>>启用
				<input type="radio" id="status" class="xn-hongbao" value="0" name="status" <#if cardRule.status == 0>checked="checked"</#if>>禁用
			</div>
		</div>
		<div class="formitm">
			<label class="lab">卡片类型：</label>
			<div class="ipt">
				<select name="type" id="type">
					<option value="1" <#if cardRule.type == 1>selected="selected"</#if>>“酒”酒卡</option>
					<option value="2" <#if cardRule.type == 2>selected="selected"</#if>>“掌”酒卡</option>
					<option value="3" <#if cardRule.type == 3>selected="selected"</#if>>“柜”酒卡</option>
				</select>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">有效期：</label>
			<div class="ipt">
				<input type="text" name="validDay" class="w200 easyui-validatebox" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  maxlength="10" data-options="required: true"  value="${cardRule.validDay!0}"/>天
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">卡片总数：</label>
			<div class="ipt">
				<input type="text" name="total" class="w200 easyui-validatebox" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  maxlength="10" data-options="required: true"  value="${cardRule.total!0}"/>张
				<b>*</b>
			</div>
		</div>
		<div class="formitm" style="clear:both;">
			<label class="lab">卡片规则描述：</label>
			<div class="ipt">
				<textarea rows="3" maxlength="150" cols="50" name="description">${cardRule.description!}</textarea>
			</div>
		</div>
		<div class="formitm" style="clear:both;">
			<label class="lab">添加时间：</label>
			<div class="ipt">${cardRule.addTime?string('yyyy-MM-dd HH:mm:ss')}</div>
		</div>
		<div class="formitm">
			<label class="lab">添加IP：</label>
			<div class="ipt">
				${cardRule.addIp!}
			</div>
		</div>

		<input type="hidden" name="addTime" value="${cardRule.addTime?string('yyyy-MM-dd HH:mm:ss')}">
		<input type="hidden" name="id" value="${cardRule.id!}">
		<input type="hidden" name="addIp" value="${cardRule.addIp!}">
		<input type="hidden" name="issueNum" value="${cardRule.issueNum?c}"/>
	</form>
</div>
